package StringDemo1;


import lang.TestString;
import org.junit.jupiter.api.Test;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;


/**
 * @Author Mr.Wen
 * @Version 1.0
 */
public class Test1 implements inter2 {
    public static void main(TestString[] args) {
//        ArrayList<Object> list = new ArrayList<>();
//        list.add("sd");
//        list.add("sdsd");
//        list.remove("sd");
//        System.out.println("list = " + list);
//        new Test1().run();
    }

    Integer i = 1;

    @Override
    @Test
    public void run() {
        i = 2;
        System.out.println("i = " + i);
    }

    @Override
    @Test
    public void find() {
        i = 3;
        System.out.println("i = " + i);
    }

    @Test
    void test1() throws FileNotFoundException {
        StringBuilder stringBuilder = new StringBuilder();
        String string = new String();
        int i = 2;
        int i2 = 0;
        try {
            while (true) {
                System.out.println("i2 = " + i2);
            }
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            System.out.println("执行完毕");
        }
    }
}
